package com.ims.common.dao;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

public interface BaseDAO<T, ID extends Serializable>  {
	
	List<?> find(String hqlQuery, Object[] params);

	void persistObject(T entity);

	void updateObject(T entity);
	
	void saveOrUpdateObject(T entity);

	void delete(T entity);

	public T findById(Class<T> type, ID id);

	public List<T> findAll(Class<T> type);
     
     

//     public T[] findById(Class<T> type, ID... id);

   
//     public boolean[] save(Object... entities);

 
//     public void deleteByIds(Class<T> type,  ID... id);

   



}
